﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using CMS.BLL;
using CMS.BLL.Entity;

public partial class Controls_Payment_ctrPayment : System.Web.UI.UserControl
{
    private int nCurrentLang = Support.GetCurrentLanguage();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            this.InitData();
        }
    }

    private void InitData()
    {
        lblPayment.Text = MultipleLanguage.LBL_PAYMENT[nCurrentLang - 1];
        StaticPages obj = new StaticPages ();
        obj.LoadById(29);

        ltrPayment.Text = obj.Data.PageContent2;
    }

    //private int GetCountry()
    //{
    //    int nCountry = 0;
    //    nCountry = ConvertData.ConvertToInt(Request.QueryString[Config.COUNTRY]);
    //    if (nCountry == 0)
    //        nCountry = Config.COUNTRY_DEFAULT;
    //    return nCountry;
    //}

    //private void InitData()
    //{
    //    lblPayment.Text = MultipleLanguage.LBL_PAYMENT[nCurrentLang - 1];
    //    int nCountry = this.GetCountry();
    //    StaticPages objInfo = new StaticPages();
    //    StaticPages objAttraction = new StaticPages();
    //    switch (nCountry)
    //    {
    //        case 1:
    //            lblAttract.Text = MultipleLanguage.VIETNAMATTRACTION[nCurrentLang - 1];
    //            lblInfor.Text = MultipleLanguage.VIETNAMINFO[nCurrentLang - 1];
    //            objInfo.LoadById(42);
    //            objAttraction.LoadById(43);
    //            break;
    //        case 2:
    //            lblAttract.Text = MultipleLanguage.LAOATTRACTION[nCurrentLang - 1];
    //            lblInfor.Text = MultipleLanguage.LAOINFO[nCurrentLang - 1];
    //            objInfo.LoadById(44);
    //            objAttraction.LoadById(46);
    //            break;
    //        case 3:
    //            lblAttract.Text = MultipleLanguage.CAMBODIAATTRACTION[nCurrentLang - 1];
    //            lblInfor.Text = MultipleLanguage.CAMBODIAINFO[nCurrentLang - 1];
    //            objInfo.LoadById(45);
    //            objAttraction.LoadById(47);
    //            break;
    //    }

    //    switch (nCurrentLang)
    //    {
    //        case 1:
    //            ltrAttract.Text = objAttraction.Data.PageContent1;
    //            ltrInfo.Text = objInfo.Data.PageContent1;
    //            break;
    //        case 2:
    //            ltrAttract.Text = objAttraction.Data.PageContent2;
    //            ltrInfo.Text = objInfo.Data.PageContent2;
    //            break;
    //        case 3:
    //            ltrAttract.Text = objAttraction.Data.PageContent3;
    //            ltrInfo.Text = objInfo.Data.PageContent3;
    //            break;
    //    }
    //}
}